/*
 * 四川生学教育科技有限公司
 * Copyright (c) 2015-2025 Founder Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * Founder. You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the agreements
 * you entered into with Founder.
 *
 */
package com.example.demo.service.impl;

import com.example.demo.domain.SecUser;
import com.example.demo.mapper.SecUserMapper;
import com.example.demo.service.AService;
import com.example.demo.service.BService;
import com.example.demo.service.CService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author JiuHu.XIONG (xjh@sxw.cn)
 * @description TODO
 * @date 2018/9/25 16:34
 * @since 1.0.0
 */
@Service
public class AServiceImpl implements AService {

    @Autowired
    private BService bService;
    @Autowired
    private CService cService;
    @Autowired
    private SecUserMapper secUserMapper;


//    @Transactional(rollbackFor = Exception.class)
    @Override
    public void methodA() {
        bService.methodB();
        cService.methodC();
        Integer s = null;
        s.equals("kkk");

        SecUser secUser = new SecUser();
        secUser.setUsername("methodA");
        secUserMapper.insert(secUser);
    }
}
